<?php
/**
 * Klasse für Projekte
 */
class Model_Cost extends Zend_Db_Table_Abstract
{
    /** Table name */
    protected $_name = 'cost';
    /** Primary Key */
    protected $_primary = 'costid';
    
	public function getAll($where = null, $order = null, $count = null, $offset = null)
	{
		return $this->fetchAll($where, $order, $count, $offset);
	}
	public function getPriceByCostID($costid) {
		
		$cost = $this->find($costid)->toArray();
		return count($cost) == 1 ? $cost[0]['price'] : false;
		
	}
    
};

?>